package model

import "time"

type UserLog struct {
	ID        int       `gorm:"primarykey" json:"id"`
	CreatedAt time.Time `json:"createdAt"`
	Uid       int       `gorm:"type:INT(11)"`
	IP        string    `gorm:"type:varchar(20)"`
	Method    string    `gorm:"type:varchar(8)"`
	URI       string    `gorm:"type:varchar(128)"`
}

type BeanUserLog struct {
	UserLog
	Username   string
	ActionName string
}
